SftTree/OCX 7.0

SftTree.ItemEditFont Property

Softel vdm, Inc.

Defines the font used for cell editing.

Deprecated - Provided for compatibility with earlier versions only - See Cell Editing
This property continues to be used with Internet Explorer as it does not support the new cell editing mechanisms introduced with SftTree/OCX 7.0.

Syntax       

Get

VB.NET

refFontObj = object.ItemEditFont  As System.Drawing.FontLanguage-specific information

VB

Set refFontObj = object.ItemEditFont  As IFontDisp

C#.NET

System.Drawing.FontLanguage-specific information refFontObj = object.ItemEditFont;

VC++

IFontDisp* refFontObj = object->GetItemEditFont();

C

HRESULT object->get_ItemEditFont(IFontDisp** refFontObj);

Delphi

refFontObj := object.ItemEditFont  : TFont;

Put

VB.NET

object.let_ItemEditFont(ByVal refFontObj As System.Drawing.FontLanguage-specific information)

VB

object.ItemEditFont = refFontObj  As IFontDisp

C#.NET

void object.let_ItemEditFont(System.Drawing.FontLanguage-specific information refFontObj);

VC++

void object->PutItemEditFont(IFontDisp* refFontObj);

C

HRESULT object->put_ItemEditFont(IFontDisp* refFontObj);

Delphi

procedure object._Set_ItemEditFont(refFontObj : TFont);

PutRef

VB.NET

object.ItemEditFont = refFontObj  As System.Drawing.FontLanguage-specific information

VB

Set object.ItemEditFont = refFontObj  As IFontDisp

C#.NET

System.Drawing.FontLanguage-specific information object.ItemEditFont = refFontObj;

VC++

void object->PutRefItemEditFont(IFontDisp* refFontObj);

C

HRESULT object->putref_ItemEditFont(IFontDisp* refFontObj);

Delphi

object.ItemEditFont := refFontObj  : TFont;

object

A SftTree object.

refFontObj

Defines the font used for cell editing.  For information about font properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

Deprecated - Provided for compatibility with earlier versions only - See Cell Editing
This property continues to be used with Internet Explorer as it does not support the new cell editing mechanisms introduced with SftTree/OCX 7.0.

The ItemEditFont property defines the font used for cell editing.

The ItemEditFont property is used to change the font used for cell editing using edit controls and combo boxes.  The font specified is used for the edit control and combo box when editing cells using the StartEdit, StartComboEdit and StartCombo methods.  It is not used for cell editing started using the Cell.Edit method.

Depending on the CellEditStyle property, the controls used for cell editing can adjust to the font defined using the ItemEditFont property.

Using PutRef (see Syntax above) the control will use the reference to the Font object.  If the Font object is later changed, this will also affect the font used by the control.  Using Put instead causes the control to create a copy of the Font object.  If the Font object is later changed, this will not affect the font used by the control as it uses a copy of the object.  Because of the additional overhead and the increased resource use of Put, PutRef is the preferred method.

See Also  SftTree Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com